home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / bbs / lord2b7.zip / MAINT.REF < prev    next >
Text File  |  1997-06-05  |  6KB  |  281 lines

  1. ;maint is in here, called from L2 when needed or /maint is applied
  2.  
  3. @#seperate
  4. @writefile lognow.txt
  5.                                  `2-`0=`2-`%=`2-`0=`2-
  6. @closescript
  7.  
  8.  
  9.  
  10. @#MAINT
  11. @if lognow.txt exist true then do
  12.  @begin
  13.  @if logold.txt exist true then delete logold.txt
  14.  @do rename lognow.txt logold.txt
  15.  @end
  16.  
  17. @do `p20 random 5 1
  18.  
  19. @if `p20 is 1 then addlog
  20.   `2It is a beautiful day today.
  21.  
  22. @if `p20 is 2 then addlog
  23.   It is foggy today.
  24.  
  25. @if `p20 is 3 then addlog
  26.   It is raining today.
  27.  
  28. @if `p20 is 4 then addlog
  29.   It is overcast today.
  30.  
  31. @if `p20 is 5 then addlog
  32.   It is incredibly hot today.
  33.  
  34. @do `v02 is `p20 ;record weather
  35.  
  36. @routine seperate
  37.  
  38. ;now lets see what the 'shrine' is doing today, if anything
  39. @do `v04 random 20 1
  40.  
  41. @if `v04 is 1 then do
  42.   @begin
  43.   @do addlog
  44.   `0The Shrine Of Babos observes the `%Gryphon Moon`0.
  45.    @routine seperate
  46.   @end
  47.  
  48. @if `v04 is 2 then do
  49.   @begin
  50.   @do addlog
  51.   `0The Shrine Of Babos celebrates the `%Vitalis`0 holiday.
  52.    @routine seperate
  53.   @end
  54.  
  55. @if `v04 is 3 then do
  56.   @begin
  57.   @do addlog
  58.   `0The Shrine Of Babos performs the rite of `%Belar`0.
  59.    @routine seperate
  60.   @end
  61.  
  62. @if `v04 is 4 then do
  63.   @begin
  64.   @do addlog
  65.   `0The Shrine Of Babos sings the psalms of `%the rock`0.
  66.    @routine seperate
  67.   @end
  68.  
  69. @saveglobals
  70.  
  71. ;Welcome to the daily log adds
  72. ;Have a look ....
  73.  
  74. @do `p20 random 20 1
  75.  
  76. @if `p20 is 1 then do
  77.   @begin
  78.   @do addlog
  79.   `%A Dragon Tooth Cult Proclamation:
  80.   @do addlog
  81. `\  `2Hear ye, hear ye!  The Dragon Tooth Cult is looking for new recruits,
  82.   @do addlog
  83.   `2if interested, contact a local garrison.
  84.   @routine seperate
  85.   @end
  86.  
  87. @if `p20 is 2 then do
  88.   @begin
  89.   @do addlog
  90.   `2Dragon Tooth troops protect `%Sosen Village `2from attack.
  91.   @routine seperate
  92.   @end
  93.  
  94. @if `p20 is 3 then do
  95.   @begin
  96.   @do addlog
  97.   `2Dragon Tooth troops protect `%PortTown `2from attack.
  98.   @routine seperate
  99.   @end
  100.  
  101. @if `p20 is 4 then do
  102.   @begin
  103.   @do addlog
  104.   `2Dragon Tooth troops protect `%FlagCity `2from attack.
  105.   @routine seperate
  106.   @end
  107.  
  108. @if `p20 is 5 then do
  109.   @begin
  110.   @do addlog
  111.   `2Dragon Tooth troops raid the unholy `%BoneTown`2.
  112.   @routine seperate
  113.   @end
  114.  
  115. @if `p20 is 6 then do
  116.   @begin
  117.   @do addlog
  118.   `2A child was reported lost today in the `%Northlands`2.
  119.   @routine seperate
  120.   @end
  121.  
  122. @if `p20 is 7 then do
  123.   @begin
  124.   @do addlog
  125.   `2Theft has been on the rise in the area surrounding `%BoneTown`2.
  126.   @routine seperate
  127.   @end
  128.  
  129. @if `p20 is 8 then do
  130.   @begin
  131.   @do addlog
  132.   `2Dragon Tooth men report `4Red Dragon`2 sightings in the `%ArrisVille`2 area.
  133.   @routine seperate
  134.   @end
  135.  
  136. @if `p20 is 9 then do
  137.   @begin
  138.   @do addlog
  139.   `3Koshi men `2report no `4Red Dragon`2 sightings whatsoever.
  140.   @routine seperate
  141.   @end
  142.  
  143. @if `p20 is 10 then do
  144.   @begin
  145.   @do addlog
  146.   `%A Dragon Tooth Cult Announcement:
  147.   @do addlog
  148. `\  `2Hear ye!  The Dragon Tooth Cult is calling for the monthly protection
  149.   @do addlog
  150.   `2fees.  Contact your local garrison about payment.
  151.   @routine seperate
  152.   @end
  153.  
  154. @if `p20 is 11 then do
  155.   @begin
  156.   @do addlog
  157.   `%A Dragon Tooth Cult Announcement:
  158.   @do addlog
  159. `\  `2Hear ye!  The Dragon Tooth Cult will be using the Shrine Of Babos 
  160.   @do addlog
  161.   `2today.  Please refrain from attending the area.
  162.   @routine seperate
  163.   @end
  164.  
  165. @if `p20 is 12 then do
  166.   @begin
  167.   @do addlog
  168.   `2Dragon Tooth men report the `4Red Dragon`2 may be in the `%Greentree`2 area.
  169.   @routine seperate
  170.   @end
  171.  
  172. @if `p20 is 13 then do
  173.   @begin
  174.   @do addlog
  175.   `2Dragon Tooth men declare martial law upon `%BoneTown`2 for not paying
  176.   @do addlog
  177.   `2protection fees.
  178.   @routine seperate
  179.   @end
  180.  
  181. @if `p20 is 14 then do
  182.   @begin
  183.   @do addlog
  184.   `2Dragon Tooth men investigate the `%ArrisVille`2 area.
  185.   @routine seperate
  186.   @end
  187.  
  188. @if `p20 is 15 then do
  189.   @begin
  190.   @do addlog
  191.   `2goD a si theS.
  192.   @routine seperate
  193.   @end
  194.  
  195. @if `p20 is 16 then do
  196.   @begin
  197.   @do addlog
  198.   `2Prince Corin proclaims the `%ArrisVille`2 area void of the Red Dragon.
  199.   @routine seperate
  200.   @end
  201.  
  202. @if `p20 is 17 then do
  203.   @begin
  204.   @do addlog
  205.   `3Koshi men `2report no `4Red Dragon`2 sightings on the sea.
  206.   @routine seperate
  207.   @end
  208.  
  209. @if `p20 is 18 then do
  210.   @begin
  211.   @do addlog
  212.   `2Dragon Tooth men report thievery rising on the high seas.
  213.   @routine seperate
  214.   @end
  215.  
  216. @if `p20 is 19 then do
  217.   @begin
  218.   @do addlog
  219.   `2The `3Koshi `2are offering a reward for return of their `%Gryphon Moon`2.
  220.   @routine seperate
  221.   @end
  222.  
  223. @if `p20 is 20 then do
  224.   @begin
  225.   @do addlog
  226.   `2Dragon Tooth men put a stop to a anti-cult rally near Stonepass.
  227.   @routine seperate
  228.   @end
  229.  
  230.  
  231.  
  232.  @do `s01 is NIL
  233.  
  234.  @do `p20 random 9 1
  235.  @if `p20 is 1 then `s01 add Grizelda
  236.  @if `p20 is 2 then `s01 add `n
  237.  @if `p20 is 3 then `s01 add Turgon
  238.  @if `p20 is 4 then `s01 add Grimgroth
  239.  @if `p20 is 5 then `s01 add Abdul
  240.  @if `p20 is 6 then `s01 add Pap
  241.  @if `p20 is 7 then `s01 add Barak
  242.  @if `p20 is 8 then `s01 add Sandtiger
  243.  @if `p20 is 9 then `s01 add Goatboy
  244.  
  245.   @do `s01 add `x
  246.  
  247.  @do `p20 random 10 1
  248.  @if `p20 is 1 then `s01 add sucks
  249.  @if `p20 is 2 then `s01 add bites
  250.  @if `p20 is 3 then `s01 add worships
  251.  @if `p20 is 4 then `s01 add kills
  252.  @if `p20 is 5 then `s01 add loves
  253.  @if `p20 is 6 then `s01 add throws
  254.  @if `p20 is 7 then `s01 add eats
  255.  @if `p20 is 8 then `s01 add licks
  256.  @if `p20 is 9 then `s01 add rides
  257.  @if `p20 is 10 then `s01 add drinks
  258.  
  259.   @do `s01 add `x
  260.  
  261.  @do `p20 random 9 1
  262.  @if `p20 is 1 then `s01 add apples
  263.  @if `p20 is 2 then `s01 add snakes
  264.  @if `p20 is 3 then `s01 add Belar
  265.  @if `p20 is 4 then `s01 add salt
  266.  @if `p20 is 5 then `s01 add monsters
  267.  @if `p20 is 6 then `s01 add dragons
  268.  @if `p20 is 7 then `s01 add water
  269.  @if `p20 is 8 then `s01 add horses
  270.  @if `p20 is 9 then `s01 add children
  271.  
  272. @if l2tree.dat exist true then delete l2tree.dat
  273. @writefile l2tree.dat
  274. `s01
  275. @
  276.  
  277.  
  278. @#NOTHING
  279.  
  280.  
  281.